package com.example.myapplication.video.video_sift;

import com.example.myapplication.a_utils.MyRetrofit;
import com.example.myapplication.a_utils.Ret_API;
import com.example.myapplication.b_entity.Daxia;
import com.example.myapplication.video.video_bean.Video_Text_Bean;

import java.util.List;

import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

public class Vido_Model implements Vido_Contract.Vido_Model{

    @Override
    public void requestVido(int index, int index2, Observer<Daxia> observer) {
        MyRetrofit.getInstance().getRetrofit("http://www.qubaobei.com/")
                .create(Ret_API.class)
                .getDaxia(index,index2)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(observer);
    }

    @Override
    public void destroy() {

    }
}
